package com.xuecheng.learning.agent;

import com.xuecheng.api.media.model.vo.ResourceUrlModel;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p></p>
 *
 * @Description:
 */
@FeignClient(name = XcFeignServiceNameList.XC_MEDIA_SERVICE)
public interface MediaApiAgent {

    @GetMapping("/media/l/media-url/{mediaId}")
    public RestResponse<ResourceUrlModel> playUrl(@PathVariable Long mediaId);

}
